package com.patrick.socket;

import java.io.IOException;
import java.io.OutputStream;
import java.net.Socket;

public class SocketClient {

    public static void main(String[] args) throws IOException {
        Socket socket = new Socket("localhost", 8080);N

        OutputStream outputStream = socket.getOutputStream();
        String carNo = "京a1354";
        String lon = "1.244";
        String lat = "1324";
        String request = carNo + lon + lat;

        outputStream.write(request.getBytes());

        socket.close();
    }
}
